package cn.tedu;
/*本类用于面向对象手机案例*/
public class Phone1 {
    public static void main(String[] args) {
        Phone p = new Phone();
        p.function();
        p.jump();
        p.brand = "1+7";
        p.color = "天空紫";
        p.age = 10;
        p.price = 3955;
        System.out.println("手机的品牌：" + p.brand);
        System.out.println("手机的颜色是：" + p.color);
        System.out.println("手机的年龄是：" + p.age);
        System.out.println("手机的价格是：" + p.price);

    }
}
class Phone {
    String color;
    int price;
    String brand;
    int age;

    public void function() {
        System.out.println("人工智能");
    }

    public void jump() {
        System.out.println("可以跳着看视频");
    }
    public void call(){
        System.out.println("可以打电话");
    }
}


